var x = -2147483648


var x1=''+x

var x2 = []

var K =''




for (let i = 0; i < x1.length; i++) {

    x2[i]=x1[i]

}



if (x<0) {
    
    K=x2.shift();

    
}

x2=x2.reverse();

x1=''

for (let i = 0; i < x2.length; i++) {
    x1=x1+x2[i]
}

x=Number(x1)

if (x<2147483647 && x>-2147483648) {
    
    console.log( K+x );

} else {
    
    console.log( 0 );
}
